﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Asion.Dapper
{
    public static class ConditionFactoryExtend
    {
        internal static string ToSql(this ICondition condition, Type type)
        {
            var baseConditon = condition as BaseCondition;
            baseConditon.Build(type);
            var getsql = condition as IGetSql;
            return getsql.GetSql();
        }
    }
}
